﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ArgusLib.Threading
{
	public class SynchronizedInt32 : SynchronizedObject<int>
	{
		public SynchronizedInt32(int value)
			: base(value)
		{
		}

		public SynchronizedInt32()
			: base()
		{
		}

		public void Increment()
		{
			lock (this._lock)
			{
				this._Object++;
			}
		}

		public void Decrement()
		{
			lock (this._lock)
			{
				this._Object--;
			}
		}
	}
}
